<?php 
class DomArTestClass_ValidatiorBasics extends DomArObject {

	/**
	* @orm text
	* @orm validator method myMethod
	*/
	public $text;
	
	/**
	* @orm text
	*/
	public $text2;
	
	public function getValidationErrorMessages() {
		return array(
			'text'  => array(
				1100 => 'Value must be "correctValue"!'
			),
		);
	}
	
	public function myMethod( $value ) {
		return $value == 'correctValue' ? 0 : 1100;
	}

}
?>